load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "zio_grpc",
    srcs = ["protoc_gen_zio_grpc.go"],
    importpath = "github.com/stackb/rules_proto/pkg/plugin/scalapb/zio_grpc",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/protoc",
        "@bazel_gazelle//label:go_default_library",
    ],
)

go_test(
    name = "zio_grpc_test",
    srcs = ["protoc_gen_zio_grpc_test.go"],
    deps = [
        ":zio_grpc",
        "//pkg/plugintest",
    ],
)

filegroup(
    name = "all_files",
    testonly = True,
    srcs = [
        "BUILD.bazel",
    ] + glob(["*.go"]),
    visibility = ["//pkg:__pkg__"],
)
